package com.car.service.impl;

import com.car.dao.CommentMapper;
import com.car.entity.Comment;
import com.car.service.ICommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("commentService")
public class CommentService implements ICommentService {
    @Autowired
    @Qualifier("commentMapper")
    private CommentMapper commentMapper;

    @Override
    public List<Comment> findAll(int pageNum, int pageSize) {
        return commentMapper.findAll(pageNum, pageSize);
    }

    @Override
    public List<Comment> findStatus(String point) {
        return commentMapper.findStatus(point);
    }

    @Override
    public Comment findById(int order_id) {
        return commentMapper.findById(order_id);
    }

    @Override
    public List<Comment> findtatus(String point) {
        return commentMapper.findtatus(point);
    }
}
